import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import VueLazyLoad from 'vue-lazyload'
Vue.config.productionTip = false
Vue.use(VueLazyLoad, {
  preLoad: 1.3,
  // loading: require("@/assets/loading.gif")
})
import axios from 'axios'
Vue.prototype.axios = 'axios'
axios.interceptors.request.use(function (config) {
  // 在发送请求之前做些什么
  
  store.state.isShowLoading = true;
  return config;
}, function (error) {
  // 对请求错误做些什么
  return Promise.reject(error);
});
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
